<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>我的博客</title>
    <style>
        #header {
            background-color:black;
            color:white;
            text-align:center;
            padding:5px;
        }
        #nav {
            line-height:30px;
            background-color:#eeeeee;
            height:300px;
            width:100px;
            float:left;
            padding:5px;
        }
        #section {
            width:350px;
            float:left;
            padding:10px;
        }
        #footer {
            background-color:black;
            color:white;
            clear:both;
            text-align:center;
            padding:5px;
        }
    </style>
</head>
<body>

<div id="header">
    <h1>崔玉辉个人博客</h1>
</div>

<div id="nav">
    <a href="https://blog.csdn.net/c364902709" target="_blank">CSDN</a><br>
    <a href="https://github.com/yhcui" target="_blank">GitHub</a><br>
</div>

<div id="section">
    <h1>说明</h1>
    <p>
        这是一个我的个人博客，用来收集日常知识
    </p>

</div>

<div id="footer">
    <script language="javascript">
        //获取域名
        host = window.location.host;
        host2= document.domain;

        //获取页面完整地址
        url = window.location.href;
        if (host2.indexOf("yiran") != -1) {
            document.write('<a href="http://beian.miit.gov.cn" target="_blank">备案号鲁ICP备18039813号-2</a> <br/>');
        } else if (host2.indexOf("mycoin") != -1) {
            document.write('<a href="http://beian.miit.gov.cn" target="_blank">备案号鲁ICP备18039813号-1</a> <br/>');
        } else {
            document.write('<a href="http://beian.miit.gov.cn" target="_blank">备案号鲁ICP备18039813号-1</a> <br/>');
            document.write('<a href="http://beian.miit.gov.cn" target="_blank">备案号鲁ICP备18039813号-2</a> <br/>');
        }
    </script>


</div>
</body>
</html>